package com.sinux.generality.provider.pay.factory.masterorder;

import com.sinux.generality.provider.pay.entity.GptPayOrder;

/****
 * @className Context
 * @describe 上下文
 * @author lhz
 * @date  2021/10/20 03:36
 * @version 0.0.1
 */

public class Context {
     private PayOrder payOrder;
     /****
      * Context 构造函数决定创建的主订单类型
      * @author lhz 
      * @param payOrder
      * @return null
      */
     
     public Context(PayOrder payOrder){
          this.payOrder = payOrder;
     }
     public void setPayOrder(PayOrder payOrd){
          this.payOrder = payOrder;
     }
     public GptPayOrder createPayOrder(GptPayOrder gptPayOrder, Long businessOrderId, Integer payType){
        return   this.payOrder.createPayOrder(gptPayOrder,businessOrderId,payType);
     }
}